package com.mnxiaotu.mapper;

import com.mnxiaotu.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
* @author 86182
* @description 针对表【role(角色表)】的数据库操作Mapper
* @createDate 2024-04-25 23:58:41
* @Entity com.mnxiaotu.entity.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户ID查询用户角色列表
     *
     * @param userId 用户ID
     * @return 用户角色列表
     */
    List<Role> selectRolesByUserId(@Param("userId") Long userId);

}




